var e = require, t = module, n = exports;

Object.defineProperty(n, "__esModule", {
    value: !0
}), n.MD5 = void 0;

var o = 0, i = "", a = 8;

function r(r, n) {
    r[n >> 5] |= 128 << n % 32, r[14 + (n + 64 >>> 9 << 4)] = n;
    for (var t = 1732584193, e = -271733879, o = -1732584194, a = 271733878, f = 0; f < r.length; f += 16) {
        var i = t, p = e, v = o, m = a, t = c(t, e, o, a, r[f + 0], 7, -680876936), a = c(a, t, e, o, r[f + 1], 12, -389564586), o = c(o, a, t, e, r[f + 2], 17, 606105819), e = c(e, o, a, t, r[f + 3], 22, -1044525330);
        t = c(t, e, o, a, r[f + 4], 7, -176418897), a = c(a, t, e, o, r[f + 5], 12, 1200080426), 
        o = c(o, a, t, e, r[f + 6], 17, -1473231341), e = c(e, o, a, t, r[f + 7], 22, -45705983), 
        t = c(t, e, o, a, r[f + 8], 7, 1770035416), a = c(a, t, e, o, r[f + 9], 12, -1958414417), 
        o = c(o, a, t, e, r[f + 10], 17, -42063), e = c(e, o, a, t, r[f + 11], 22, -1990404162), 
        t = c(t, e, o, a, r[f + 12], 7, 1804603682), a = c(a, t, e, o, r[f + 13], 12, -40341101), 
        o = c(o, a, t, e, r[f + 14], 17, -1502002290), t = l(t, e = c(e, o, a, t, r[f + 15], 22, 1236535329), o, a, r[f + 1], 5, -165796510), 
        a = l(a, t, e, o, r[f + 6], 9, -1069501632), o = l(o, a, t, e, r[f + 11], 14, 643717713), 
        e = l(e, o, a, t, r[f + 0], 20, -373897302), t = l(t, e, o, a, r[f + 5], 5, -701558691), 
        a = l(a, t, e, o, r[f + 10], 9, 38016083), o = l(o, a, t, e, r[f + 15], 14, -660478335), 
        e = l(e, o, a, t, r[f + 4], 20, -405537848), t = l(t, e, o, a, r[f + 9], 5, 568446438), 
        a = l(a, t, e, o, r[f + 14], 9, -1019803690), o = l(o, a, t, e, r[f + 3], 14, -187363961), 
        e = l(e, o, a, t, r[f + 8], 20, 1163531501), t = l(t, e, o, a, r[f + 13], 5, -1444681467), 
        a = l(a, t, e, o, r[f + 2], 9, -51403784), o = l(o, a, t, e, r[f + 7], 14, 1735328473), 
        t = d(t, e = l(e, o, a, t, r[f + 12], 20, -1926607734), o, a, r[f + 5], 4, -378558), 
        a = d(a, t, e, o, r[f + 8], 11, -2022574463), o = d(o, a, t, e, r[f + 11], 16, 1839030562), 
        e = d(e, o, a, t, r[f + 14], 23, -35309556), t = d(t, e, o, a, r[f + 1], 4, -1530992060), 
        a = d(a, t, e, o, r[f + 4], 11, 1272893353), o = d(o, a, t, e, r[f + 7], 16, -155497632), 
        e = d(e, o, a, t, r[f + 10], 23, -1094730640), t = d(t, e, o, a, r[f + 13], 4, 681279174), 
        a = d(a, t, e, o, r[f + 0], 11, -358537222), o = d(o, a, t, e, r[f + 3], 16, -722521979), 
        e = d(e, o, a, t, r[f + 6], 23, 76029189), t = d(t, e, o, a, r[f + 9], 4, -640364487), 
        a = d(a, t, e, o, r[f + 12], 11, -421815835), o = d(o, a, t, e, r[f + 15], 16, 530742520), 
        t = u(t, e = d(e, o, a, t, r[f + 2], 23, -995338651), o, a, r[f + 0], 6, -198630844), 
        a = u(a, t, e, o, r[f + 7], 10, 1126891415), o = u(o, a, t, e, r[f + 14], 15, -1416354905), 
        e = u(e, o, a, t, r[f + 5], 21, -57434055), t = u(t, e, o, a, r[f + 12], 6, 1700485571), 
        a = u(a, t, e, o, r[f + 3], 10, -1894986606), o = u(o, a, t, e, r[f + 10], 15, -1051523), 
        e = u(e, o, a, t, r[f + 1], 21, -2054922799), t = u(t, e, o, a, r[f + 8], 6, 1873313359), 
        a = u(a, t, e, o, r[f + 15], 10, -30611744), o = u(o, a, t, e, r[f + 6], 15, -1560198380), 
        e = u(e, o, a, t, r[f + 13], 21, 1309151649), t = u(t, e, o, a, r[f + 4], 6, -145523070), 
        a = u(a, t, e, o, r[f + 11], 10, -1120210379), o = u(o, a, t, e, r[f + 2], 15, 718787259), 
        e = u(e, o, a, t, r[f + 9], 21, -343485551), t = h(t, i), e = h(e, p), o = h(o, v), 
        a = h(a, m);
    }
    return Array(t, e, o, a);
}

function s(r, n, t, u, e, o) {
    return h((o = h(h(n, r), h(u, o))) << e | o >>> 32 - e, t);
}

function c(r, n, t, u, e, o, c) {
    return s(n & t | ~n & u, r, n, e, o, c);
}

function l(r, n, t, u, e, o, c) {
    return s(n & u | t & ~u, r, n, e, o, c);
}

function d(r, n, t, u, e, o, c) {
    return s(n ^ t ^ u, r, n, e, o, c);
}

function u(r, n, t, u, e, o, c) {
    return s(t ^ (n | ~u), r, n, e, o, c);
}

function p(n, t) {
    var u = f(n);
    16 < u.length && (u = r(u, n.length * a));
    for (var e = Array(16), o = Array(16), c = 0; c < 16; c++) e[c] = 909522486 ^ u[c], 
    o[c] = 1549556828 ^ u[c];
    t = r(e.concat(f(t)), 512 + t.length * a);
    return r(o.concat(t), 640);
}

function h(r, n) {
    var t = (65535 & r) + (65535 & n);
    return (r >> 16) + (n >> 16) + (t >> 16) << 16 | 65535 & t;
}

function f(r) {
    for (var n = Array(), t = (1 << a) - 1, u = 0; u < r.length * a; u += a) n[u >> 5] |= (r.charCodeAt(u / a) & t) << u % 32;
    return n;
}

function g(r) {
    for (var n = "", t = (1 << a) - 1, u = 0; u < 32 * r.length; u += a) n += String.fromCharCode(r[u >> 5] >>> u % 32 & t);
    return n;
}

function m(r) {
    for (var n = o ? "0123456789ABCDEF" : "0123456789abcdef", t = "", u = 0; u < 4 * r.length; u++) t += n.charAt(r[u >> 2] >> u % 4 * 8 + 4 & 15) + n.charAt(r[u >> 2] >> u % 4 * 8 & 15);
    return t;
}

function y(r) {
    for (var n = "", t = 0; t < 4 * r.length; t += 3) for (var u = (r[t >> 2] >> t % 4 * 8 & 255) << 16 | (r[t + 1 >> 2] >> (t + 1) % 4 * 8 & 255) << 8 | r[t + 2 >> 2] >> (t + 2) % 4 * 8 & 255, e = 0; e < 4; e++) 8 * t + 6 * e > 32 * r.length ? n += i : n += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(u >> 6 * (3 - e) & 63);
    return n;
}

var v = function() {
    function n() {}
    return n.prototype.hex_md5 = function(n) {
        return m(r(f(n), n.length * a));
    }, n.prototype.b64_md5 = function(n) {
        return y(r(f(n), n.length * a));
    }, n.prototype.str_md5 = function(n) {
        return g(r(f(n), n.length * a));
    }, n.prototype.hex_hmac_md5 = function(r, n) {
        return m(p(r, n));
    }, n.prototype.b64_hmac_md5 = function(r, n) {
        return y(p(r, n));
    }, n.prototype.str_hmac_md5 = function(r, n) {
        return g(p(r, n));
    }, n.prototype.md5_vm_test = function() {
        return "900150983cd24fb0d6963f7d28e17f72" == this.hex_md5("abc");
    }, n;
}();

n.MD5 = new v(), window.MD5 = n.MD5;